Fix typos in Cairo region conversion so that Quartz actually compiles
authorKristian Rietveld <kris@gtk.org>
Wed, 30 Jun 2010 09:10:29 +0000 (11:10 +0200)
committerKristian Rietveld <kris@gtk.org>
Wed, 30 Jun 2010 09:10:29 +0000 (11:10 +0200)
gdk/quartz/gdkwindow-quartz.c

index 493d22d0e45389c07f56c2312ade50462f4a6f9a..815a3b5a4f43f2f9b0c2a55f361e1772c06480a0 100644 (file)
@@ -132,7 +132,7 @@ gdk_window_impl_quartz_get_context (GdkDrawable *drawable,
          cg_rects[i].size.height = cairo_rect.height;
        }
 
-      CGContextClipToRects (context, cg_rects, n_rects);
+      CGContextClipToRects (cg_context, cg_rects, n_rects);
 
       if (cg_rects != &rect)
         g_free (cg_rects);
@@ -289,7 +289,7 @@ gdk_window_impl_quartz_begin_paint_region (GdkPaintable    *paintable,
       int x, y;
       int x_offset, y_offset;
       int width, height;
-      cairo_int_rectangle_t rect;
+      cairo_rectangle_int_t rect;
       GdkGC *gc;
 
       x_offset = y_offset = 0;